import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: () => import(/* webpackChunkName: "about" */ '../views/home/index.vue')
  },
  {
    path: '/publicize/index',
    name: 'publicize',
    component: () => import(/* webpackChunkName: "about" */ '../views/publicize/index.vue')
  },
  {
    path: '/information/index',
    name: 'information',
    component: () => import(/* webpackChunkName: "about" */ '../views/information/index.vue')
  },
  {
    path: '/notice/index',
    name: 'information',
    component: () => import(/* webpackChunkName: "about" */ '../views/notice/index.vue')
  },
  {
    path: '/detial/index/:id',
    name: 'detial',
    component: () => import(/* webpackChunkName: "about" */ '../views/detial/index.vue')
  },
  {
    path: '/noticeDetial/index/:id',
    name: 'notice',
    component: () => import(/* webpackChunkName: "about" */ '../views/noticeDetial/index.vue')
  },
]

const router = new VueRouter({
  routes
})

export default router
